package com.tingyun.sign.questions.service;

import java.util.List;

import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.domain.Specification;

import com.tingyun.sign.core.entity.ScActivityBean;
import com.tingyun.sign.core.entity.ScQuestionsBean;
//import org.springframework.data.domain.Page;
import com.tingyun.sign.utils.Page;


public interface QuestionsService {
//	public List<ScQuestionsBean> showQuestions(int activityId);

//	输入问题
	public Integer  addQuestions(ScQuestionsBean bean);
	
	//回答问题
	public Integer  answerQuestion(ScQuestionsBean bean);

	//在提问页下方，展示所有问题
	public List<ScQuestionsBean> listQuestions(ScQuestionsBean bean);
	
	//问题展示页，分页显示所有问题列表
	public Page<ScQuestionsBean> findQuestionsPage(ScQuestionsBean bean);

	/**
	 * 
	 * @param bean
	 * @return
	 */
/*	public Page<ScQuestionsBean> findPageByAreaAndAcId(ScQuestionsBean bean);
*/
	
//	public Page<ScQuestionsBean> findByPage(Specification<ScQuestionsBean> spec,PageRequest pageRequest);
	
	public ScQuestionsBean getQuestion(Long id);
	
//	public List<ScActivityBean> findAllActivities();
	
	public List<ScActivityBean> findActivitiesByArea(int managerType);
}
